package org.example.servicemanage.client;

import org.example.model.manage.bean.Result;
import org.example.model.manage.bean.po.Student;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-student")    //声明为Feign客户端
//若为第三方API则用@FeignClient(value = "service-baidu", url = "http://baidu.com")
public interface StudentFeignClient {

    @GetMapping("/student/get/{id}")
    Result<Student> getProductById(@PathVariable("id") Long id);


}
